<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            padding: 0px;
            margin: 0px;
        }

        .box {
            margin: 100px auto;
            background: url("images/clock.jpg") no-repeat;
            width: 600px;
            height: 600px;
            position: relative;
        }

        .second {
            width: 30px;
            height: 600px;
            background: url("images/second.png") no-repeat;
            position: absolute;
            left: 50%;
            margin-left: -15px;

        }

        .hour {
            width: 30px;
            height: 600px;
            background: url("images/hour.png") no-repeat;
            position: absolute;
            left: 50%;
            margin-left: -15px;

        }

        .minute {
            width: 30px;
            height: 600px;
            background: url("images/minute.png") no-repeat;
            position: absolute;
            left: 50%;
            margin-left: -15px;
        }
    </style>
    <script>
        window.onload = function () {
            setInterval(time, 100);
            let se = document.getElementsByClassName("second")[0];
            let minute = document.getElementsByClassName("minute")[0];
            let hour = document.getElementsByClassName("hour")[0];

            function time() {

                var date = new Date();
                let milliseconds = date.getMilliseconds();
                let seconds = date.getSeconds() + milliseconds / 1000;
                let min = date.getMinutes();
                let hour = date.getHours();
                // rotate(7deg)
                se.style.WebkitTransform = "rotate(" + seconds * 6 + "deg)"; //  second.style.WebkitTransform = "rotate("+ s*6 +"deg)";
                minute.style.WebkitTransform = "rotate(" + min * 6 + "deg)"; //  second.style.WebkitTransform = "rotate("+ s*6 +"deg)";
                hour.style.WebkitTransform = "rotate(" + hour * 6 + "deg)"; //  second.style.WebkitTransform = "rotate("+ s*6 +"deg)";

            }

        }
    </script>
</head>
<body>

<div class="box">
    <div class="hour"></div>
    <div class="minute"></div>
    <div class="second"></div>

</div>
</body>
</html>